package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcCsunBodySensorConfig;
import com.csun.cmny.provider.model.dto.bodysensor.BodySensorConfigDto;
import com.csun.cmny.provider.model.vo.csunbody.BodySensorConfigVO;

public interface DmcCsunBodySensorConfigService extends IService<DmcCsunBodySensorConfig> {
    /**
     * 查询人感配置
     * @date 2020/1/10 17:27
     * @param deviceId
     * @return com.csun.cmny.provider.service.DmcCsunGatewayConfigBodySensorService
     */
    DmcCsunBodySensorConfig queryConfigByDeviceId(Long deviceId);

    /**
     *
     * @date 2020/1/14 15:07
     * @param roomId, groupId
     * @param deviceId
     * @return com.csun.cmny.provider.service.DmcCsunBodySensorConfigService
     */
    DmcCsunBodySensorConfig queryConfigByRoomIdAndGroupId(Long deviceId, Integer roomId, Long groupId);

    /**
     * 更新人感配置
     * @date 2020/1/14 15:27
     * @param dmcCsunBodySensorConfig
     * @return com.csun.cmny.provider.service.DmcCsunBodySensorConfigService
     */
    Integer saveOrUpdate(DmcCsunBodySensorConfig dmcCsunBodySensorConfig);

    /*
    * 批量人感配置
    * */
    Integer setBodySensorConfig(BodySensorConfigDto dto, LoginAuthDto loginAuthDto);

    /*
     * 查询人感配置
     * */
    BodySensorConfigVO getBodySensorConfig(Long deviceId);
}
